<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>表格边框案例</title>
    <style>
        table {
            border-collapse: collapse;
            width: 100%;
        }

        table,
        th,
        td {
            border: 1px solid green;
        }

        th {
            height: 50px;
            vertical-align: bottom;
            background-color: orange;
            color: red;
        }

        td {
            text-align: right;
            padding: 15px;
        }

        th {
            height: 50px;
            vertical-align: bottom;
        }
    </style>
</head>

<body>
    <table>
        <tr>
            <th>Firstname</th>
            <th>Lastname</th>
        </tr>
        <tr>
            <td>Peter</td>
            <td>Griffin</td>
        </tr>
        <tr>
            <td>Lois</td>
            <td>Griffin</td>
        </tr>
    </table>
</body>

</html>